package com.zfdang.touchhelper;

import android.annotation.SuppressLint;
import android.app.Application;
import android.content.Context;

import com.zfdang.touchhelper.tool.LyNotifactionTool;
import com.zfdang.touchhelper.tool.LyPreferenceTool;

/**
 * @author ly-dengpw
 */
public class MyApp extends Application {

    @SuppressLint("StaticFieldLeak")
    private static Context context;

    public MyApp() {
        super();
    }

    @Override
    public void onCreate() {
        super.onCreate();
        MyApp.context = getApplicationContext();
        LyPreferenceTool.getInstance().init(this);
        LyNotifactionTool.getInstance().init(this);
    }

    public static Context getAppContext() {
        return context;
    }
}
